package com.lovo.service.impl;

import com.lovo.bean.User;
import com.lovo.dao.UserDAO;
import com.lovo.dao.impl.UserDAOImpl;
import com.lovo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDAO userDAO;
    @Override
    public User login(String username, String pwd) {
        return userDAO.getByUsernameAndPwd(username,pwd);
    }
}
